<?php
/**
 * TOP API: alibaba.alisports.passport.user.taobao request
 * 
 * @author auto create
 * @since 1.0, 2016.07.08
 */
class AlibabaAlisportsPassportUserTaobaoRequest
{
	/** 
	 * 用户来源，0:手淘频道页，1:支付宝频道页，2:阿里体育网站app，3协会网站app
	 **/
	private $getFrom;
	
	/** 
	 * 支持jsonp
	 **/
	private $jsonpcallback;
	
	/** 
	 * havanaid
	 **/
	private $uid;
	
	private $apiParas = array();
	
	public function setGetFrom($getFrom)
	{
		$this->getFrom = $getFrom;
		$this->apiParas["get_from"] = $getFrom;
	}

	public function getGetFrom()
	{
		return $this->getFrom;
	}

	public function setJsonpcallback($jsonpcallback)
	{
		$this->jsonpcallback = $jsonpcallback;
		$this->apiParas["jsonpcallback"] = $jsonpcallback;
	}

	public function getJsonpcallback()
	{
		return $this->jsonpcallback;
	}

	public function setUid($uid)
	{
		$this->uid = $uid;
		$this->apiParas["uid"] = $uid;
	}

	public function getUid()
	{
		return $this->uid;
	}

	public function getApiMethodName()
	{
		return "alibaba.alisports.passport.user.taobao";
	}
	
	public function getApiParas()
	{
		return $this->apiParas;
	}
	
	public function check()
	{
		
		RequestCheckUtil::checkNotNull($this->getFrom,"getFrom");
		RequestCheckUtil::checkNotNull($this->uid,"uid");
	}
	
	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
